package com.app.domain.response;

import lombok.Data;
import lombok.ToString;

@Data
@ToString
public class GenericResponse<T> {
    private int code;
    private String data;
    private String message;
    private T result;
    private Boolean success;
    private long timestamp;
    
    public GenericResponse() {
    }
    
    public GenericResponse(int code, String data, String message, T result, Boolean success, long timestamp) {
        this.code = code;
        this.data = data;
        this.message = message;
        this.result = result;
        this.success = success;
        this.timestamp = timestamp;
    }
}